﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace C1WijmoProManagement
{
    public partial class report : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                return;
            }
            this.C1ComboBox1.SelectedIndex = 0;
            this.C1ReportViewer1.FileName = "resource/report/2010年各月销售收入明细.xml";
            this.C1ReportViewer1.CollapseToolsPanel = true;
            //this.C1ReportViewer1.ToolBar.Controls.
            this.C1ReportViewer1.ToolBar.Style.Value = "width:616px";
        }

        protected void C1ComboBox1_SelectedIndexChanged(object sender, C1.Web.Wijmo.Controls.C1ComboBox.C1ComboBoxEventArgs args)
        {
            switch (args.NewSelectedIndex)
            {
                case 0:
                    this.C1ReportViewer1.FileName = "resource/report/2010年各月销售收入明细.xml";
                    this.C1ReportViewer1.CollapseToolsPanel = true;
                    this.C1ReportViewer1.Zoom = "fit width";
                    break;
                case 1:
                    this.C1ReportViewer1.FileName = "resource/report/2010年产品销售明细.xml";
                    this.C1ReportViewer1.CollapseToolsPanel = true;
                    break;
                default:
                    break;
            }
        }
    }
}